/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package POJO;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * @author Kute_Ants
 */
public class orderPOJO implements Serializable
{
    private String maOrder;
    private String maKhachHang;
    private Date thoiGianTao;
    private int tongTien;
    private String diaChiGiaoHang;
    private String tinhTrang;
    private Date ngayBatDauGiao;
    private Date ngayKetThuc;
    
    // phuong thuc khoi tao

    public orderPOJO(String MaOrder, String MaKhachHang, Date ThoiGianTao, int TongTien, String DiaChiGiaoHang, String TinhTrang, Date NgayBatDauGiao, Date NgayKetThuc) 
    {
        this.maOrder = MaOrder;
        this.maKhachHang = MaKhachHang;
        this.thoiGianTao = ThoiGianTao;
        this.tongTien = TongTien;
        this.diaChiGiaoHang = DiaChiGiaoHang;
        this.tinhTrang = TinhTrang;
        this.ngayBatDauGiao = NgayBatDauGiao;
        this.ngayKetThuc = NgayKetThuc;
    }
    
    public orderPOJO() 
    {
        this.maOrder = null;
        this.maKhachHang = null;
        this.thoiGianTao = new Date();
        this.tongTien = 0;
        this.diaChiGiaoHang = null;
        this.tinhTrang = null;
        this.ngayBatDauGiao = new Date();
        this.ngayKetThuc = new Date();
    }
    
    public orderPOJO(orderPOJO Or) 
    {
        this.maOrder = Or.maOrder;
        this.maKhachHang = Or.maKhachHang;
        this.thoiGianTao = Or.thoiGianTao;
        this.tongTien = Or.tongTien;
        this.diaChiGiaoHang = Or.diaChiGiaoHang;
        this.tinhTrang = Or.tinhTrang;
        this.ngayBatDauGiao = Or.ngayBatDauGiao;
        this.ngayKetThuc = Or.ngayKetThuc;
    }
    
    // phuong thuc get set 

    public String getDiaChiGiaoHang() {
        return diaChiGiaoHang;
    }

    public void setDiaChiGiaoHang(String DiaChiGiaoHang) {
        this.diaChiGiaoHang = DiaChiGiaoHang;
    }

    public String getMaKhachHang() {
        return maKhachHang;
    }

    public void setMaKhachHang(String MaKhachHang) {
        this.maKhachHang = MaKhachHang;
    }

    public String getMaOrder() {
        return maOrder;
    }

    public void setMaOrder(String MaOrder) {
        this.maOrder = MaOrder;
    }

    public Date getNgayBatDauGiao() {
        return ngayBatDauGiao;
    }

    public void setNgayBatDauGiao(Date NgayBatDauGiao) {
        this.ngayBatDauGiao = NgayBatDauGiao;
    }

    public Date getNgayKetThuc() {
        return ngayKetThuc;
    }

    public void setNgayKetThuc(Date NgayKetThuc) {
        this.ngayKetThuc = NgayKetThuc;
    }

    public Date getThoiGianTao() {
        return thoiGianTao;
    }

    public void setThoiGianTao(Date ThoiGianTao) {
        this.thoiGianTao = ThoiGianTao;
    }

    public String getTinhTrang() {
        return tinhTrang;
    }

    public void setTinhTrang(String TinhTrang) {
        this.tinhTrang = TinhTrang;
    }

    public int getTongTien() {
        return tongTien;
    }

    public void setTongTien(int TongTien) {
        this.tongTien = TongTien;
    }
    
    
    
    
    
    
}
